package model

import (
	"cabinet/pkg/global"
	"gorm.io/gorm"
)

// 柜子类型表
type CabinetType struct {
	gorm.Model
	TypeID      int    `gorm:"not null" json:"type_id"`
	Size        string `gorm:"type:varchar(255)" json:"size"`
	MaxWeight   int    `gorm:"type:int" json:"max_weight"`
	Descripiton string `gorm:"type:varchar(255)" json:"descripiton"`
	BaseModel
}

func GetCabinetType() *gorm.DB {
	return global.Mysql.Model(&CabinetType{})
}
